<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Medal Stock Management System</title>
        <link rel="stylesheet" href="<?php echo base_url(); ?>public/css/screen.css" type="text/css" title="default" />
        <link rel="stylesheet" href="<?php echo base_url(); ?>public/css/chosen.css" type="text/css" title="default" />
        <link rel="stylesheet" href="<?php echo base_url(); ?>public/css/colorbox.css" type="text/css" title="default" />
        <!--[if IE]>
        <link rel="stylesheet" media="all" type="text/css" href="<?php echo base_url(); ?>public/css/pro_dropline_ie.css" />
        <![endif]-->

        <!--  jquery core -->
        <script src="<?php echo base_url(); ?>public/js/jquery-1.7.1.min.js" type="text/javascript"></script>
        <script src="<?php echo base_url(); ?>public/js/cleartextbox.plg.js" type="text/javascript"></script>
        <script type="text/javascript" language="javascript" src="<?php echo base_url(); ?>public/js/datatable/js/jquery.dataTables.js"></script>
        <script type="text/javascript" charset="utf-8">
            $(document).ready(function() {
	
            } );
        </script>

        <!-- Custom jquery scripts -->
        <script src="<?php echo base_url(); ?>public/js/jquery/custom_jquery.js" type="text/javascript"></script>

        <!-- Tooltips -->
        <script src="<?php echo base_url(); ?>public/js/jquery/jquery.tooltip.js" type="text/javascript"></script>
        <script src="<?php echo base_url(); ?>public/js/jquery/jquery.dimensions.js" type="text/javascript"></script>
        <script src="<?php echo base_url(); ?>public/js/ajaxupload.3.5.js" type="text/javascript"></script>
        <script src="<?php echo base_url(); ?>public/js/jquery.form.js" type="text/javascript"></script>
        <script src="<?php echo base_url(); ?>public/js/datatable/js/dataTableExt.oApi.fnReloadAjax.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(function() {
                $('a.info-tooltip ').tooltip({
                    track: true,
                    delay: 0,
                    fixPNG: true, 
                    showURL: false,
                    showBody: " - ",
                    top: -35,
                    left: 5
                });
            });
        </script>

        <!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
        <script src="<?php echo base_url(); ?>public/js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>


        <script type="text/javascript">
            $(document).ready(function(){
		
            });
        </script>
        <?php
        include('jquery_ui.php');
        include('jquery_dialog.php');
        ?>
    </head>
    <?php
    include('application/views/check_message.php');
    ?>
    <body>
        <!-- Start: page-top-outer -->
        <div id="page-top-outer"> 

            <!-- Start: page-top -->
            <div id="page-top"> 

                <!-- start logo -->
                <!--<div id="logo"><a href=""><!--<img src="<?php echo base_url(); ?>public/images/shared/logo.png" width="156" height="40" alt="" />></a> </div>-->
                <div id="sitename">ប្រព័ន្ធគ្រប់គ្រងគ្រឿងឥស្សរិយយសមន្ត្រីរាជការ</div>
                <!-- end logo --> 

                <!--  start top-search -->
                <!--<div id="top-search"></div>-->
                <?php
                define('CUR_CLASS', $this->router->class);
                define('CUR_METHOD', $this->router->method);

                function setMenuClass($className, $methodName, $type = 'main') {

                    switch ($type) {
                        case 'subitem': echo ($className == CUR_CLASS && ($methodName == CUR_METHOD)) ? 'class = "sub_show"' : '';
                            break;
                        case 'main': echo ($className == CUR_CLASS && ($methodName == CUR_METHOD || $methodName == '')) ? 'class = "current"' : 'class = "select"';
                            break;
                        case 'sub': echo ($className == CUR_CLASS && ($methodName == CUR_METHOD || $methodName == '')) ? 'class = "select_sub show"' : 'class = "select_sub"';
                            break;
                    }
                }
                ?>

                <!--  end top-search -->
                <div class="clear"></div>
            </div>
            <!-- End: page-top --> 

        </div>
        <!-- End: page-top-outer -->

        <div class="clear">&nbsp;</div>

        <!--  start nav-outer-repeat................................................................................................. START -->
        <div class="nav-outer-repeat"> 
            <!--  start nav-outer -->
            <div class="nav-outer"> 

                <!-- start nav-right -->
                <div id="nav-right">
                    <div class="nav-divider">&nbsp;</div>
                    <a href="<?php echo site_url('administrator/logout'); ?>" id="logout">ឈប់ប្រើប្រាស់</a>
                    <div class="clear">&nbsp;</div>
                </div>
                <!-- end nav-right --> 

                <!--  start nav -->
                <div class="nav">
                    <div class="table">
                        <ul <?php setMenuClass('admin', 'index'); ?>>
                            <li><a href="<?php echo site_url('/admin/index'); ?>"><b>ស្ថិតិទិន្ន័យសង្ខេប</b></a></li>
                        </ul>
                        <div class="nav-divider">&nbsp;</div>
                        <ul <?php setMenuClass('official_order', ''); ?>>
                            <li><a href="<?php echo site_url('/official_order/index'); ?>"><b>ឥស្សរិយយស</b></a> 
                              <!--[if lte IE 6]><table><tr><td><![endif]-->
                                <div <?php setMenuClass('official_order', '', 'sub'); ?>">
                                    <ul class="sub">
                                        <li <?php setMenuClass('official_order', 'index', 'subitem'); ?>><a href="<?php echo site_url('/official_order/index'); ?>">តាមព្រះរាជាក្រឹត្យ</a></li>
                                        <li <?php setMenuClass('official_order', 'index_secondary', 'subitem'); ?>><a href="<?php echo site_url('/official_order/index_secondary'); ?>">តាមអនុក្រឹត្យ</a></li>
                                    </ul>
                                </div>
                                <!--[if lte IE 6]></td></tr></table></a><![endif]--> 
                            </li>
                        </ul>
                        <div class="nav-divider">&nbsp;</div>
                        <ul <?php
                if ($this->router->class == "medal_receipt") {
                    setMenuClass('medal_receipt', 'index');
                } else {
                    setMenuClass('medal_offer', 'index');
                }
                ?>>
                            <li><a href="<?php echo site_url('/medal_receipt/index'); ?>"><b>មន្រ្តី</b></a>
                                 <!--[if lte IE 6]><table><tr><td><![endif]-->
                                <div <?php
                            if ($this->router->class == "medal_receipt") {
                                setMenuClass('medal_receipt', '', 'sub');
                            } else {
                                setMenuClass('medal_offer', '', 'sub');
                            }
                ?> >
                                    <ul class="sub">
                                        <li <?php setMenuClass('medal_receipt', 'index', 'subitem'); ?>><a href="<?php echo site_url('/medal_receipt/index'); ?>">មន្រ្តីទទួលមេដាយ</a></li>
                                        <li <?php setMenuClass('medal_offer', 'index', 'subitem'); ?>><a href="<?php echo site_url('/medal_offer/index'); ?>">សៀវភៅមេដាយ</a></li>
                                    </ul>
                                </div>
                                <!--[if lte IE 6]></td></tr></table></a><![endif]--> 
                            </li>
                        </ul>
                        <div class="nav-divider">&nbsp;</div>
                        <ul <?php setMenuClass('admin_stock', ''); ?>>
                            <li><a href="<?php echo site_url('/admin_stock/issue'); ?>"><b>ស្តុកមេដាយ</b></a> 
                              <!--[if lte IE 6]><table><tr><td><![endif]-->
                                <div <?php setMenuClass('admin_stock', '', 'sub'); ?>>
                                    <ul class="sub">
                                        <li <?php setMenuClass('admin_stock', 'issue', 'subitem'); ?>><a href="<?php echo site_url('/admin_stock/issue'); ?>">ការបញ្ចេញស្តុក</a></li>
                                        <li <?php setMenuClass('admin_stock', 'history', 'subitem'); ?>><a href="<?php echo site_url('/admin_stock/history'); ?>">ប្រវត្តិបំរែបំរួលស្តុក</a></li>
                                    </ul>
                                </div>
                                <!--[if lte IE 6]></td></tr></table></a><![endif]--> 
                            </li>
                        </ul>
                        <div class="nav-divider">&nbsp;</div>
                        <ul <?php setMenuClass('admin', 'admin_report'); ?>>
                            <li><a href="<?php echo site_url('/admin/admin_report'); ?>"><b>របាយការណ៍</b></a> </li>
                        </ul>
                        <div class="clear"></div>
                    </div>
                    <div class="clear"></div>
                </div>
                <!--  start nav --> 

            </div>
            <div class="clear"></div>
            <!--  start nav-outer --> 
        </div>
        <!--  start nav-outer-repeat................................................... END -->

        <div class="clear"></div>

        <!-- start content-outer -->
        <div id="content-outer"> 
            <!-- start content -->
            <div id="content">
                <?php
                include('application/views/message_content.php');
                ?>
                <div class="clear">&nbsp;</div>
            </div>
            <!--  end content -->
            <div class="clear">&nbsp;</div>
        </div>
        <!--  end content-outer -->

        <div class="clear">&nbsp;</div>

        <!-- start footer -->
        <div id="footer"> 
            <!--  start footer-left -->
            <div id="footer-left">2012 &copy; Copyright Webit Solution. <a href="http://www.webits.asia">www.webits.asia</a>. All rights reserved.</div>
            <!--  end footer-left -->
            <div class="clear">&nbsp;</div>
        </div>
        <div id="dialog"></div>
        <!-- end footer -->
    </body>
</html>